package com.marketingcenter.service;

import com.marketingcenter.entity.DiscountCard;

/**
 * 折扣卡服务接口
 */
public interface DiscountCardService extends PromotionService<DiscountCard> {

    /**
     * 发放折扣卡给用户
     */
    boolean distributeDiscountCard(Long cardId, Long userId);

    /**
     * 使用折扣卡
     */
    boolean useDiscountCard(Long cardId, Long userId, Long orderId);

    /**
     * 查询用户已领取的折扣卡
     */
    int countUserReceived(Long cardId, Long userId);

}